<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function mp(a) {
            console.log(a, 'aaaa');
            return new Promise((resolve, reject) => {
                resolve(11)
            })
        }
        function* fn() {
            // const params = yield '1111'
            // console.log(params);
            // yield mp()
        }
        const generator = fn()
        console.log(generator);
        generator.next()
        // console.log(generator.next('1111111122222').value.then((res) => {
        //     console.log(res);
        // }));
    </script>
</head>

<body>

</body>

</html>